package info.sean.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class User {


    private Long id;
    private String username;

    private String password;

    private String nickname;

    private Integer age;

    @Email
    private String email;

}
